package com.origin.chaos.common.controller;

import com.origin.chaos.common.bean.vo.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: tao.ding
 * @date 2021-07-20
 */
@RestController
public class ExceptionRouteController {

    @RequestMapping(value = "/not-login")
    public Result notLogin() {
        return Result.notLogin();
    }

    @RequestMapping(value = "/not-admin")
    public Result notAdmin() {
        return Result.ofErrorMessage("你不是管理员，哪里凉快哪里待着去，傻逼");
    }
}
